export function handlerPicUrls(picUrls) {
  if (typeof picUrls === "string") {
    picUrls = picUrls ? picUrls.split(",") : "";
  }
  if (Array.isArray(picUrls)) {
    picUrls = picUrls.map((x) => {
      x = x.slice(x.indexOf("/profile"));
      return x;
    });
  }
  return picUrls;
}


export function handlerPagesPicUrls(picUrls) {
  picUrls = picUrls.map((x) => {
    x = process.env.VUE_APP_IMG_HOST + x;
    return x;
  });
  return picUrls;
}
